(function(){"use strict";BX.namespace("BX.Main");if(BX.Main.gridManager){return}BX.Main.gridManager={data:[],push:function(t,n){if(BX.type.isNotEmptyString(t)&&n){var i={id:t,instance:n,old:null};if(this.getById(t)===null){this.data.push(i)}else{this.data[0]=i}}},getById:function(t){var n=this.data.filter(function(n){return n.id===t||n.id.replace("main_grid_","")===t});return n.length===1?n[0]:null},getInstanceById:function(t){var n=this.getById(t);return BX.type.isPlainObject(n)?n["instance"]:null},reload:function(t,n){var i=this.getInstanceById(t);if(i){i.reload(n)}},getDataIndex:function(t){var n=null;this.data.forEach(function(i,a){if(i.id===t){n=a}});return n},destroy:function(t){if(BX.type.isNotEmptyString(t)){var n=this.getInstanceById(t);if(n instanceof BX.Main.grid){n.destroy();var i=this.getDataIndex(t);if(i!==null){delete this.data[i]}}}}}})();
//# sourceMappingURL=manager.map.js